package com.xxg.renrenorder.domain.query;

import com.xxg.renrenorder.dao.bean.AddressInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 提交订单参数
 *
 * @author szj
 * @date 2021/12/13
 */
@Data
@ApiModel(value = "SubmitOrderQuery", description = "提交订单参数")
public class SubmitOrderQuery {
    @Valid
    @NotNull(message = "productAccounts不能为null")
    @ApiModelProperty(value = "商品信息", required = true)
    private List<SubmitProductAccount> productAccounts;
    @ApiModelProperty("备注")
    private String remark;
    @Valid
    @NotNull(message = "addressInfo不能为null")
    @ApiModelProperty(value = "收货地址信息", required = true)
    private AddressInfo addressInfo;
    @ApiModelProperty("如果从购物车下单，把购物车数据id带上")
    private List<String> userCartIds;
}
